<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/pub/upload/";  //应用的地址名
String listActionName = basePath+"PubUpload_search.action?op=searchjs";
int type = 0;
try{
	type = Integer.parseInt(request.getParameter("type"));
}
catch(Exception e){
}
String fileType = request.getParameter("fileType");
fileType = fileType==null?"":fileType;
%>

    
<html>
  <head>
    <base href="<%=basePath%>"></base>
    <title><%=com.ce.util.RegeditUtil.getRegeditStringValue("SYSTEM_SEG_NAME") %></title>
<script type="text/javascript">
    		$(function(){
			//初始化表格
			$('#searchTable').grid({
				title:undefined,
				url:'<%=listActionName%>',
				queryParams:{"search.tp":<%=type %>,"search.fileType":'<%=fileType %>',"search.vcFileName":"","search.beginDate":"","search.endDate":""},  //用于查询的参数以及初始值
				//表头列，不建议改动
				frozenColumns:[[   
	                {field:'ck',checkbox:true}
				]],
				//数据列，根据显示的内容进行修改
				columns:[[   
						{field:'vcFilename',title:'文件名',width:180,sortable:true,editor:'text'},
						{field:'dtAddTime',title:'添加时间',width:150,sortable:true,editor:'text'},
						{field:'vcFilesize',title:'文件大小',width:60,sortable:true,editor:'text',align:'right'},
						{field:'vcUserName',title:'上传人',width:70,sortable:true,editor:'text'},
					//数据操作列，可根据情况进行修改
					{title:'操作',width:48,field:'action',align:'center',formatter:function(value,row,index){
							return '<a href="javascript:void(0);" onclick="favorite(\''+row.vcId+'\')">收藏</a>';
						}}
				]],
			 	onBeforeEdit:function(index,row){     
			        row.editing = true; 
			        $('#searchTable').datagrid('refreshRow', index); //编辑前进行刷新数据  
			    },   
			    onAfterEdit:function(index,row){   
			        row.editing = false;   
			        $('#searchTable').datagrid('refreshRow', index); //编辑前进行刷新数据  
			    },   
			    onCancelEdit:function(index,row){   
			        row.editing = false;   
			        $('#searchTable').datagrid('refreshRow', index); //编辑前进行刷新数据  
			    },
				//功能按钮组
                toolbar:null
			});
		    //查询操作
			$('#search').click(function(){
		            defaultSearchAction();  
            });
            $('#beginDate').datebox();
            $('#endDate').datebox();
		});
		//点击编辑按钮后的操作：打开编辑界面
		function openHelpPage(){
		}
		 
    </script>
<style>
.pagination-page-list{width:60px;}
.pagination-num{width:30px;}
</style>
  </head>  
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr height="30" class="panel" style="background-color:#EFEFEF">
    <td style="padding-left:20px;">
    文件名：<input type="text" style="width:60px" id="vcFileName" name="vcFileName">
    上传时间：<input type="text" style="width:90px" id="beginDate" name="beginDate">
    至<input type="text" style="width:90px" id="endDate" name="endDate">
    
    <a id="search" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search">查询</a></td>
  </tr>
  <tr>
    <td colspan="2"><div id="searchTable"></div></td>
  </tr>
</table>
</body>
</html>
   

